{extend name='admin@main'}
{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='association/index_search'}</caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='list-table-sort-td'>
            <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
        </th>
        <th class='text-center nowrap'>教师名称</th>
        <th class='text-center nowrap'>社团名称</th>
        <th class='text-center nowrap'>文件</th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}
    <tr>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
        <td class='list-table-sort-td'><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.id}" class="list-sort-input"></td>
        <td class='text-center nowrap'>
            <div class="inline-block">{$vo.realname|default=''}</div>
        </td>
        <td class='text-center nowrap'>
            <div class="inline-block">{$vo.course_name|default=''}</div>
        </td>
        <td class='text-center nowrap'>
            {if $vo.file_url}
                <a style="width:60px;height:60px" href="{$vo.file_url}" download class="margin-right-5 text-top">查看</a>
            {else}
                <a style="width:60px;height:60px" href="#" class="margin-right-5 text-top"></a>
            {/if}
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
{/block}